<template>
  <div>
    <!-- 面包屑 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item v-for="(item,index) in titleArr" :key="index">{{ item }}</el-breadcrumb-item>
    </el-breadcrumb>
    <!-- 卡片视图 -->
    <el-card>
      <!-- 插槽：展示组件调用时，包裹的内容 -->
      <slot></slot>
    </el-card>
  </div>
</template>

<script>
  export default {
    props: {
      titleArr: Array
    },
    data() {
      return {

      }
    },
    methods: {

    },

  }
</script>

<style lang="less" scoped>

</style>